Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Oracle Exam 1Z0-106 Topic 7 Question 20 Discussion

Actual exam question for Oracle's 1Z0-106 exam
Question #: 20
Topic #: 7
[All 1Z0-106 Questions]

You must add an additional swap device and you add this entry to /etc/fstab:

/.swapfile none swap defaults 0 0

Examine these commands and output:

# dd if=/dev/zero of=/.swapfile bs=1024 count=1048576

1048576+0 records in

1048576+0 records out

1073741824 bytes (1.1 GB, 1.0 GiB) copied, 4.32499 s, 248 MB/s

# swapon -a

swapon: /.swapfile: insecure permissions 0644, 0600 suggested.

swapon: /.swapfile: read swap header failed

Which two actions must you perform to add this swap device?

Show Suggested Answer Hide Answer
Suggested Answer: A, C

Contribute your Thoughts:

Eladia
9 days ago
That makes sense. So, we need to initialize the file, change permissions, and use the correct partition type.
upvoted 0 times
...
Dorethea
14 days ago
I think we should also use a physical disk partition type of 82 for Linux swap.
upvoted 0 times
...
Refugia
15 days ago
Haha, imagine if the answer was 'use a physical disk partition'? That's just overkill for a simple swapfile.
upvoted 0 times
Adelle
2 days ago
A) Initialize the .swapfile file by using the mkswap command.
upvoted 0 times
...
...
Linwood
30 days ago
This is a classic 'choose two' question. A and D seem like the right moves to me.
upvoted 0 times
Golda
8 days ago
Let's go ahead and make those changes then.
upvoted 0 times
...
Kyoko
11 days ago
I agree, A and F are the correct actions to add the swap device.
upvoted 0 times
...
Hyman
15 days ago
F) Use a physical disk partition type of 82 (Linux swap).
upvoted 0 times
...
Chantay
16 days ago
A) Initialize the .swapfile file by using the mkswap command.
upvoted 0 times
...
...
Freida
30 days ago
I agree with Eladia. We also need to change the permissions to 0600.
upvoted 0 times
...
Artie
1 months ago
Nah, I think E is the way to go. Gotta label that swapfile first before turning it on.
upvoted 0 times
...
Eladia
1 months ago
I think we need to initialize the .swapfile file using the mkswap command.
upvoted 0 times
...
Glendora
2 months ago
Hmm, looks like the permissions on the swapfile are the issue here. I'd go with option A - initialize the file with mkswap.
upvoted 0 times
Tamesha
12 days ago
Let's go ahead and try that solution then.
upvoted 0 times
...
Luis
13 days ago
I agree, that seems like the right step to take.
upvoted 0 times
...
Sage
1 months ago
Option A) Initialize the .swapfile file by using the mkswap command.
upvoted 0 times
...
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77