Question 51 of 76 from exam 350-201-CBRCOR: Performing CyberOps Using Cisco Security Technologies

Question 51 of 76 from exam 350-201-CBRCOR: Performing CyberOps Using Cisco Security Technologies

Question

#!/usr/bin/env python3

import re

def (username, minlen):
if type(username) I= str:
raise TypeError
if minlen < 3:
raise ValueError
if len(username) < minlen:
return False
if not re.match(""[a-20-9._]"$', username):
return False
if username|0].isnumeric():
return False
return True

Refer to the exhibit.

An organization is using an internal application for printing documents that requires a separate registration on the website.

The application allows format-free user creation, and users must match these required conditions to comply with the company's user creation policy: -> minimum length: 3 -> usernames can only use letters, numbers, dots, and underscores -> usernames cannot begin with a number The application administrator has to manually change and track these daily to ensure compliance.

An engineer is tasked to implement a script to automate the process according to the company user creation policy.

The engineer implemented this piece of code within the application, but users are still able to create format-free usernames.

Which change is needed to apply the restrictions?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

B.