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

CompTIA Exam XK0-005 Topic 3 Question 21 Discussion

Actual exam question for CompTIA's XK0-005 exam
Question #: 21
Topic #: 3
[All XK0-005 Questions]

A Linux administrator needs to rebuild a container with the httpd service in order to change some default parameters. Which of the following should be the first command line in the Dockerfile?

Show Suggested Answer Hide Answer
Suggested Answer: A, B

The following commands can help the user to authenticate and show the ticket grants using Kerberos SSO on a Linux server:

kinit: This command obtains and caches an initial ticket-granting ticket (TGT) for the user from the Kerberos key distribution center (KDC).The user needs to enter their password or use a keytab file to authenticate1.

klist: This command lists the cached tickets, including the TGT and any service tickets, for the user.It also shows the expiration time and flags for each ticket2.

For example, the user can run the following commands to log in and view their tickets:

$ kinit username@REALM

Password for username@REALM:

$ klist

Ticket cache: FILE:/tmp/krb5cc_1000

Default principal: username@REALM

Valid starting Expires Service principal

04/06/2023 16:06:59 04/07/2023 02:06:59 krbtgt/REALM@REALM

renew until 04/13/2023 16:06:59


kinit(1) - Linux man page, section ''Description''.

klist(1) - Linux man page, section ''Description''.

Contribute your Thoughts:

Chi
25 days ago
I'm just wondering if the exam writer has ever actually used Docker before. These 'answer' options are a bit suspect, if you ask me.
upvoted 0 times
...
Adell
1 months ago
D) INHERIT httpd? What is this, object-oriented programming? Docker containers don't work that way, my friend.
upvoted 0 times
Merissa
8 days ago
B) BASE httpd
upvoted 0 times
...
Ellsworth
12 days ago
A) FROM httpd
upvoted 0 times
...
...
Jenise
1 months ago
C) USE httpd? Nah, that's not a valid Dockerfile command. Maybe the exam writer was trying to be clever, but this one is a no-brainer.
upvoted 0 times
Caitlin
30 days ago
A) FROM httpd
upvoted 0 times
...
...
Lilli
2 months ago
I'm not sure, but I think A) FROM httpd is the correct option because it specifies the base image for the container.
upvoted 0 times
...
Rebbecca
2 months ago
I agree with Billye, using FROM httpd makes sense to start building the container.
upvoted 0 times
...
Ruth
2 months ago
B) BASE httpd? Really? I've never heard of that command. Sounds made up to me.
upvoted 0 times
Emily
18 days ago
C) USE httpd
upvoted 0 times
...
Alyce
19 days ago
B) BASE httpd? Yeah, that doesn't sound right. It should be A) FROM httpd.
upvoted 0 times
...
Caren
25 days ago
A) FROM httpd
upvoted 0 times
...
Socorro
1 months ago
C) USE httpd
upvoted 0 times
...
Toshia
1 months ago
B) BASE httpd? Yeah, that doesn't sound right. I think it's A) FROM httpd
upvoted 0 times
...
Adelle
1 months ago
A) FROM httpd
upvoted 0 times
...
...
Billye
2 months ago
I think the first command should be A) FROM httpd.
upvoted 0 times
...
Man
2 months ago
The answer is clearly A) FROM httpd. That's the standard way to start a Dockerfile and specify the base image you want to use.
upvoted 0 times
Linwood
25 days ago
User4: Definitely, starting with FROM httpd is the way to go when rebuilding a container with the httpd service.
upvoted 0 times
...
Gaynell
26 days ago
User3: I agree, using FROM is the correct way to start building a container with a specific base image.
upvoted 0 times
...
Lemuel
30 days ago
User2: Yeah, that makes sense. It's the standard way to specify the base image in a Dockerfile.
upvoted 0 times
...
Cordelia
1 months ago
User1: I think the answer is A) FROM httpd.
upvoted 0 times
...
...
Brandee
2 months ago
I'm not sure, but I think A) FROM httpd makes sense because it specifies the base image for the container.
upvoted 0 times
...
Nguyet
2 months ago
I agree with Reena, using FROM is the correct way to specify the base image in a Dockerfile.
upvoted 0 times
...
Reena
2 months ago
I think the answer is A) FROM httpd.
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