New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA XK0-005 Exam - 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:

0/2000 characters
Annmarie
3 months ago
I thought it was INHERIT at first, but I guess not!
upvoted 0 times
...
Melissa
3 months ago
No way, it's always FROM for Dockerfiles.
upvoted 0 times
...
Shawna
3 months ago
Wait, are we sure BASE isn't a thing?
upvoted 0 times
...
Lavera
4 months ago
Agreed, that's the standard way to start a Dockerfile!
upvoted 0 times
...
Clement
4 months ago
Definitely the first line should be FROM httpd.
upvoted 0 times
...
Scarlet
4 months ago
I vaguely recall that FROM is the standard way to start a Dockerfile, but I hope I’m not mixing it up with something else!
upvoted 0 times
...
Leota
4 months ago
I'm a bit unsure, but I feel like INHERIT isn't the right term for Dockerfiles. I think it's FROM that we use.
upvoted 0 times
...
Jenelle
4 months ago
I practiced a similar question where we had to identify the correct base image command, and I remember it was definitely not BASE or USE.
upvoted 0 times
...
Iraida
5 months ago
I think the first command in a Dockerfile should be FROM, but I can't remember if it's specifically FROM httpd or something else.
upvoted 0 times
...
Gregg
5 months ago
Ah, I remember learning about this in class. The first line of a Dockerfile should be "FROM" followed by the base image name. Option A is the correct answer.
upvoted 0 times
...
Steffanie
5 months ago
I'm a bit unsure about this one. I know Dockerfiles use specific commands, but I can't quite recall the exact syntax. I'll have to review my notes before answering.
upvoted 0 times
...
Estrella
5 months ago
Hmm, I'm not too familiar with Dockerfiles. I'll have to think this through carefully to make sure I get the syntax right.
upvoted 0 times
...
Hollis
5 months ago
This looks straightforward. The first line of a Dockerfile should be the "FROM" command, so I'll go with option A.
upvoted 0 times
...
Mabelle
5 months ago
The key here is to use the correct Dockerfile command to specify the base image. I'm pretty confident option A is the right answer.
upvoted 0 times
...
Jerry
5 months ago
I'm pretty sure the MID Server uses port 161 for outbound connections, so I'll go with option B.
upvoted 0 times
...
Bulah
5 months ago
The Charpy impact test sounds right to me. I remember learning about that in class as the standard way to measure a material's ability to resist fracture under impact loading.
upvoted 0 times
...
Chi
9 months 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
Wava
8 months ago
D) INHERIT httpd
upvoted 0 times
...
Cathrine
8 months ago
C) USE httpd
upvoted 0 times
...
Edmond
8 months ago
B) BASE httpd
upvoted 0 times
...
Brunilda
8 months ago
A) FROM httpd
upvoted 0 times
...
...
Adell
10 months ago
D) INHERIT httpd? What is this, object-oriented programming? Docker containers don't work that way, my friend.
upvoted 0 times
Gerald
8 months ago
A) FROM httpd
upvoted 0 times
...
Luisa
8 months ago
D) INHERIT httpd? What is this, object-oriented programming? Docker containers don't work that way, my friend.
upvoted 0 times
...
Vincent
8 months ago
C) USE httpd
upvoted 0 times
...
Merissa
9 months ago
B) BASE httpd
upvoted 0 times
...
Ellsworth
9 months ago
A) FROM httpd
upvoted 0 times
...
...
Jenise
10 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
Alba
8 months ago
Agreed, A) FROM httpd is the right choice for the Dockerfile command.
upvoted 0 times
...
Launa
8 months ago
Definitely, the correct command is A) FROM httpd.
upvoted 0 times
...
Laurena
8 months ago
Yeah, C) USE httpd doesn't make sense. It should be A) FROM httpd.
upvoted 0 times
...
Reuben
8 months ago
D) INHERIT httpd
upvoted 0 times
...
Mari
8 months ago
C) USE httpd
upvoted 0 times
...
Ma
8 months ago
B) BASE httpd
upvoted 0 times
...
Caitlin
9 months ago
A) FROM httpd
upvoted 0 times
...
...
Lilli
10 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
10 months ago
I agree with Billye, using FROM httpd makes sense to start building the container.
upvoted 0 times
...
Ruth
10 months ago
B) BASE httpd? Really? I've never heard of that command. Sounds made up to me.
upvoted 0 times
Emily
9 months ago
C) USE httpd
upvoted 0 times
...
Alyce
9 months ago
B) BASE httpd? Yeah, that doesn't sound right. It should be A) FROM httpd.
upvoted 0 times
...
Caren
9 months ago
A) FROM httpd
upvoted 0 times
...
Socorro
10 months ago
C) USE httpd
upvoted 0 times
...
Toshia
10 months ago
B) BASE httpd? Yeah, that doesn't sound right. I think it's A) FROM httpd
upvoted 0 times
...
Adelle
10 months ago
A) FROM httpd
upvoted 0 times
...
...
Billye
11 months ago
I think the first command should be A) FROM httpd.
upvoted 0 times
...
Man
11 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
9 months ago
User4: Definitely, starting with FROM httpd is the way to go when rebuilding a container with the httpd service.
upvoted 0 times
...
Gaynell
9 months ago
User3: I agree, using FROM is the correct way to start building a container with a specific base image.
upvoted 0 times
...
Lemuel
9 months ago
User2: Yeah, that makes sense. It's the standard way to specify the base image in a Dockerfile.
upvoted 0 times
...
Cordelia
10 months ago
User1: I think the answer is A) FROM httpd.
upvoted 0 times
...
...
Brandee
11 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
11 months ago
I agree with Reena, using FROM is the correct way to specify the base image in a Dockerfile.
upvoted 0 times
...
Reena
11 months ago
I think the answer is A) FROM httpd.
upvoted 0 times
...

Save Cancel