CompTIA DataSys+ (DS0-002) Practice Questions

CompTIA DataSys+ (DS0-002 V2) exam preparation

CompTIA DataSys+ (DS0-002) practice questions in English: 180 questions with explanations. The mock exam has 90 questions and 90 minutes.

CompTIA DataSys+ (DS0-002) free question 7 / 10 · Domain 4: Data and Database Security

A contractor needs database access for six weeks, and the administrator wants the password to stop working on the end date. Which role option does that?

  1. An encrypted-storage flag, which stores the password encrypted
  2. An expiry date, which sets when the password becomes invalid
  3. A group membership, which adds the new role to existing roles
  4. A connection cap, which limits concurrent sessions of the role
Show the answer and explanation

Answer: B

Why this is correct
The CREATE ROLE page says the VALID UNTIL clause sets a date and time after which the role password is no longer valid, and that if the clause is omitted the password is valid for all time. It is the built-in way to give temporary access an automatic end. The source reads: "The VALID UNTIL clause sets a date and time after which the role's password is no longer valid." The page continues: "If this clause is omitted the password will be valid for all time. IN ROLE role_name The IN ROLE clause causes the new role to be automatically added as a member of the specified existing roles." Source page: CREATE ROLE, section "Note".

Why the other options are wrong
"A connection cap, which limits concurrent sessions of the role" … A connection limit caps sessions. It does not expire a password.
"A group membership, which adds the new role to existing roles" … IN ROLE controls membership of other roles and has no relation to an expiry date.
"An encrypted-storage flag, which stores the password encrypted" … That clause concerns how the password is stored. It does not set an end date.

Key points
VALID UNTIL gives a password a built-in expiry date.

Go to the CompTIA DataSys+ (DS0-002) practice app (10 free questions; purchase unlocks all questions)

See the full practice set