ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 37 - 312-40 discussion

Report
Export

Simon recently joined a multinational company as a cloud security engineer. Due to robust security services and products provided by AWS, his organization has been using AWS cloud-based services. Simon has launched an Amazon EC2 Linux instance to deploy an application. He would like to secure Linux AMI. Which of the following command should Simon run in the EC2 instance to disable user account passwords?

A.
passwd -D < USERNAME >
Answers
A.
passwd -D < USERNAME >
B.
passwd -I < USERNAME >
Answers
B.
passwd -I < USERNAME >
C.
passwd -d < USERNAME >
Answers
C.
passwd -d < USERNAME >
D.
passwd -L < USERNAME >
Answers
D.
passwd -L < USERNAME >
Suggested answer: D

Explanation:

To disable user account passwords on an Amazon EC2 Linux instance, Simon should use the command passwd -L <USERNAME>. Here's the detailed explanation:

1.passwd Command: The passwd command is used to update a user's authentication tokens (passwords).

1.-L Option: The -L option is used to lock the password of the specified user account, effectively disabling the password without deleting the user account itself.

1.Security Measure: Disabling passwords ensures that the user cannot authenticate using a password, thereby enhancing the security of the instance.

1.AWS Documentation: Securing Access to Amazon EC2 Instances

1.Linux man-pages: passwd(1)

asked 18/09/2024
Amol Wani
43 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first