exam questions

Exam SnowPro Core All Questions

View all questions & answers for the SnowPro Core exam

Exam SnowPro Core topic 1 question 412 discussion

Actual exam question from Snowflake's SnowPro Core
Question #: 412
Topic #: 1
[All SnowPro Core Questions]

A company’s security audit requires generating a report listing all Snowflake logins (e.g., date and user) within the last 90 days.

Which of the following statements will return the required information?

  • A. SELECT LAST_SUCCESS_LOGIN, LOGIN_NAME
    FROM ACCOUNT_USAGE.USERS;
  • B. SELECT EVENT_TIMESTAMP, USER_NAME
    FROM table(information_schema.login_history_by_user())
  • C. SELECT EVENT_TIMESTAMP, USER_NAME
    FROM ACCOUNT_USAGE.ACCESS_HISTORY;
  • D. SELECT EVENT_TIMESTAMP, USER_NAME
    FROM ACCOUNT_USAGE.LOGIN_HISTORY;
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Kate0204
Highly Voted 1 year, 11 months ago
Selected Answer: D
correct
upvoted 8 times
...
_yyukta
Most Recent 8 months, 4 weeks ago
Selected Answer: D
D. SELECT EVENT_TIMESTAMP, USER_NAME FROM ACCOUNT_USAGE.LOGIN_HISTORY is correct
upvoted 1 times
...
MultiCloudIronMan
1 year, 7 months ago
Selected Answer: D
Verified
upvoted 1 times
...
ShagunMittal
1 year, 8 months ago
Selected Answer: D
B will be correct only if information needs to be fetched within 7 days
upvoted 2 times
...
OTE
1 year, 8 months ago
Selected Answer: D
D - Correct https://docs.snowflake.com/en/sql-reference/account-usage/login_history B - Incorrect as login_history_by_user function returns login activity within the last 7 days only. https://docs.snowflake.com/en/sql-reference/functions/login_history
upvoted 3 times
...
markpumc
1 year, 9 months ago
B. SELECT EVENT_TIMESTAMP, USER_NAME FROM table(information_schema.login_history_by_user()) The statement in option B will return the required information of the Snowflake logins (date and user) within the last 90 days. The information_schema.login_history_by_user function returns information about logins to the account by individual users. The returned columns include EVENT_TIMESTAMP and USER_NAME, which can be used to generate the report listing all Snowflake logins within the last 90 days by filtering the results to only show logins within the specified timeframe.
upvoted 2 times
ganeshra
11 months, 2 weeks ago
The function return login activity only within the last 7 days. So, for 8 to 365 days you'll need to reach the account usage login history view https://docs.snowflake.com/en/sql-reference/functions/login_history
upvoted 1 times
...
...
AndroJS
1 year, 10 months ago
Selected Answer: B
It needs to be in a predicate https://docs.snowflake.com/en/sql-reference/functions/login_history.html
upvoted 1 times
nzpentest
1 year, 10 months ago
Only 7 days so B is not right.
upvoted 2 times
...
...
SV1122
1 year, 11 months ago
LOGIN_HISTORY returns login events within a specified time range. https://docs.snowflake.com/en/sql-reference/functions/login_history.html
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...